using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;using Maxleaf.EDI.Domain.K3;

namespace Maxleaf.EDI.DataAccess.K3
{
    public class IC_TPBOCMap : EntityTypeConfiguration<IC_TPBOC>
    {
        public IC_TPBOCMap()
        {
            // Primary Key
            this.HasKey(t => t.FItemID);

            // Properties
            this.Property(t => t.FItemID)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            // Table & Column Mappings
            this.ToTable("IC_TPBOC");
            this.Property(t => t.FItemID).HasColumnName("FItemID");
            this.Property(t => t.FBOMID).HasColumnName("FBOMID");
            this.Property(t => t.FroutingID).HasColumnName("FroutingID");
        }
    }
}
